Skip to content

Fix pending update on peer close#821

Merged
mafintosh merged 1 commit into
mainfrom
fix/peer-remove-pending-update-pr814
May 26, 2026
Merged

Fix pending update on peer close#821
mafintosh merged 1 commit into
mainfrom
fix/peer-remove-pending-update-pr814

Conversation

@marcus-pousette-hp

@marcus-pousette-hp marcus-pousette-hp commented May 26, 2026

Copy link
Copy Markdown
Contributor

The regression test covers the pending update waiter path. The _maybeResolveIfAvailableRanges() call is included to preserve the completion checks that updateAll() used to run on peer removal. Current behaviour in main can introduce stalling behaviour and other un-intended side-effects when the completion checks are not invoked

Found from the perf work at #814 while reviewing #815

@marcus-pousette-hp marcus-pousette-hp force-pushed the fix/peer-remove-pending-update-pr814 branch from 221c0c0 to 2fb7d07 Compare May 26, 2026 10:14
@marcus-pousette-hp marcus-pousette-hp marked this pull request as ready for review May 26, 2026 10:15
@marcus-pousette-hp marcus-pousette-hp requested a review from a team May 26, 2026 10:15
@mafintosh mafintosh merged commit 45b48fe into main May 26, 2026
5 checks passed
@mafintosh mafintosh deleted the fix/peer-remove-pending-update-pr814 branch May 26, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants